<!-- HTML header for doxygen 1.8.14-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="cache-control" content="max-age=86400"/>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GBDK 2020 Docs: gbdk-lib/include/gb/sgb.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen_extra.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">GBDK 2020 Docs
   &#160;<span id="projectnumber">4.4.0</span>
   </div>
   <div id="projectbrief">API Documentation for GBDK 2020</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('sgb_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">sgb.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="sgb_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#ifndef _SGB_H</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#define _SGB_H</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;types.h&gt;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="stdint_8h.html">stdint.h</a>&gt;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="sgb_8h.html#a70bdb512d109fbcaeb95efa32e9dcaf5">   12</a></span>&#160;<span class="preprocessor">#define SGB_PAL_01 0x00U    </span></div>
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="sgb_8h.html#acaa2f1ac9949189896582fc5ad0823b1">   13</a></span>&#160;<span class="preprocessor">#define SGB_PAL_23 0x01U    </span></div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="sgb_8h.html#af9e1ca804555fad619db3f38b62a49e8">   14</a></span>&#160;<span class="preprocessor">#define SGB_PAL_03 0x02U    </span></div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="sgb_8h.html#a8d633d52d4a7adfaef516953d5e8552a">   15</a></span>&#160;<span class="preprocessor">#define SGB_PAL_12 0x03U    </span></div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="sgb_8h.html#a6437bd5982922fffdbc7c5d8c643e357">   16</a></span>&#160;<span class="preprocessor">#define SGB_ATTR_BLK 0x04U  </span></div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="sgb_8h.html#ade5ba9723a9964e55cff72108149037a">   17</a></span>&#160;<span class="preprocessor">#define SGB_ATTR_LIN 0x05U  </span></div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="sgb_8h.html#adcb3f50616813637283f88bfd4d53e22">   18</a></span>&#160;<span class="preprocessor">#define SGB_ATTR_DIV 0x06U  </span></div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="sgb_8h.html#a41981a213b67bdc45bf8ed78f07e7bba">   19</a></span>&#160;<span class="preprocessor">#define SGB_ATTR_CHR 0x07U  </span></div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="sgb_8h.html#a42e0fbc58e65874e0a76d7f33a322ce8">   20</a></span>&#160;<span class="preprocessor">#define SGB_SOUND 0x08U     </span></div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="sgb_8h.html#a82a976ea6a32ae0078a27e3c06143bcf">   21</a></span>&#160;<span class="preprocessor">#define SGB_SOU_TRN 0x09U   </span></div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="sgb_8h.html#ad9023ed1d8dd4a2eebc55a376207f3d2">   22</a></span>&#160;<span class="preprocessor">#define SGB_PAL_SET 0x0AU   </span></div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="sgb_8h.html#ac490ce8566f869727e8b00fabb1c9fc6">   23</a></span>&#160;<span class="preprocessor">#define SGB_PAL_TRN 0x0BU   </span></div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="sgb_8h.html#a3d81b1e455d60d760ee58e2685953775">   24</a></span>&#160;<span class="preprocessor">#define SGB_ATRC_EN 0x0CU   </span></div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="sgb_8h.html#a8e644a43af63932283e9c78a472881dc">   25</a></span>&#160;<span class="preprocessor">#define SGB_TEST_EN 0x0DU   </span></div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="sgb_8h.html#a46440df1df1597852a286d56c1a68a48">   26</a></span>&#160;<span class="preprocessor">#define SGB_ICON_EN 0x0EU   </span></div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="sgb_8h.html#ae4fe10a0c9eca38d126f3a8701e3c9a2">   27</a></span>&#160;<span class="preprocessor">#define SGB_DATA_SND 0x0FU  </span></div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="sgb_8h.html#a862a450451cfccf138311089b85292fc">   28</a></span>&#160;<span class="preprocessor">#define SGB_DATA_TRN 0x10U  </span></div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="sgb_8h.html#a70aad9e5786ca8a4753c47583e88f8a2">   29</a></span>&#160;<span class="preprocessor">#define SGB_MLT_REQ 0x11U   </span></div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="sgb_8h.html#aac4217b88053614f70af5b1f32e72870">   30</a></span>&#160;<span class="preprocessor">#define SGB_JUMP 0x12U      </span></div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="sgb_8h.html#af4d8b611dfdda33039038375ee95f424">   31</a></span>&#160;<span class="preprocessor">#define SGB_CHR_TRN 0x13U   </span></div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="sgb_8h.html#ac0bf9d5dc54d711fd14f44bf58eaa5db">   32</a></span>&#160;<span class="preprocessor">#define SGB_PCT_TRN 0x14U   </span></div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="sgb_8h.html#a1762d2df2599cf864400bac4934a5d61">   33</a></span>&#160;<span class="preprocessor">#define SGB_ATTR_TRN 0x15U  </span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="sgb_8h.html#abf8d94c42e97e1ce640340657df70640">   34</a></span>&#160;<span class="preprocessor">#define SGB_ATTR_SET 0x16U  </span></div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="sgb_8h.html#a20477d5772564b63de2d151e062dd5a7">   35</a></span>&#160;<span class="preprocessor">#define SGB_MASK_EN 0x17U   </span></div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="sgb_8h.html#a3b76bf1e9ac81da97c533fa3ab12096c">   36</a></span>&#160;<span class="preprocessor">#define SGB_OBJ_TRN 0x18U   </span></div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="sgb_8h.html#a0b3366755f3276b0243c1e0497471b7a">   45</a></span>&#160;<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="sgb_8h.html#aebb918368f98572ffe4c439854cad191">sgb_check</a>(<span class="keywordtype">void</span>) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="sgb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160; </div>
<div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="sgb_8h.html#a84e1f2ab7dce1faabd3d271b6bf8df8c">   68</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="sgb_8h.html#a84e1f2ab7dce1faabd3d271b6bf8df8c">sgb_transfer</a>(<a class="code" href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> * packet) <a class="code" href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a> <a class="code" href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a>(<a class="code" href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a>, <a class="code" href="sgb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a>);</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* _SGB_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="aasm_2types_8h_html_a0971918860055db2e50dacea4da8f3bc"><div class="ttname"><a href="asm_2types_8h.html#a0971918860055db2e50dacea4da8f3bc">OLDCALL</a></div><div class="ttdeci">#define OLDCALL</div><div class="ttdef"><b>Definition:</b> types.h:21</div></div>
<div class="ttc" id="aasm_2types_8h_html_acb825e83a33fcc06482c59b4ab2cf961"><div class="ttname"><a href="asm_2types_8h.html#acb825e83a33fcc06482c59b4ab2cf961">PRESERVES_REGS</a></div><div class="ttdeci">#define PRESERVES_REGS(...)</div><div class="ttdef"><b>Definition:</b> types.h:32</div></div>
<div class="ttc" id="agb_8h_html_a4c2e4adef74067fdbb49005bc73de937"><div class="ttname"><a href="gb_8h.html#a4c2e4adef74067fdbb49005bc73de937">b</a></div><div class="ttdeci">void b</div><div class="ttdef"><b>Definition:</b> gb.h:748</div></div>
<div class="ttc" id="asgb_8h_html_a0b3366755f3276b0243c1e0497471b7a"><div class="ttname"><a href="sgb_8h.html#a0b3366755f3276b0243c1e0497471b7a">c</a></div><div class="ttdeci">uint8_t c</div><div class="ttdef"><b>Definition:</b> sgb.h:45</div></div>
<div class="ttc" id="asgb_8h_html_a84e1f2ab7dce1faabd3d271b6bf8df8c"><div class="ttname"><a href="sgb_8h.html#a84e1f2ab7dce1faabd3d271b6bf8df8c">sgb_transfer</a></div><div class="ttdeci">void sgb_transfer(uint8_t *packet) OLDCALL PRESERVES_REGS(b</div></div>
<div class="ttc" id="asgb_8h_html_aebb918368f98572ffe4c439854cad191"><div class="ttname"><a href="sgb_8h.html#aebb918368f98572ffe4c439854cad191">sgb_check</a></div><div class="ttdeci">uint8_t sgb_check(void) OLDCALL PRESERVES_REGS(b</div></div>
<div class="ttc" id="astdint_8h_html"><div class="ttname"><a href="stdint_8h.html">stdint.h</a></div></div>
<div class="ttc" id="astdint_8h_html_aba7bc1797add20fe3efdf37ced1182c5"><div class="ttname"><a href="stdint_8h.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a></div><div class="ttdeci">unsigned char uint8_t</div><div class="ttdef"><b>Definition:</b> stdint.h:51</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
</div>
</body>
</html>
